﻿using System;
using System.Web.UI;
//using JITE.CIS.Framework.Utilities;

public partial class ForeProgram_Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        if (Security.ValidUser(name.Text, pwd.Text))//Authentication.ValidUser(name.Text, pwd.Text)
        {
            //if (Session["UserInfo"] == null)
            //    Session["UserInfo"] = SessionHelper.Get("UserInfo");
            //if (Session["UserInfo"] != null)
            //    string userRole = ((UserInfo)Session["UserInfo"]).;
            Context.Response.Redirect("product.aspx"); // 重定向到用户申请的初始页面

        }
        else
        {
            // 用户身份未被确认时的代码
            Page.ClientScript.RegisterStartupScript(this.GetType(), "aaa", "<script>Biz.Common.ValidateHelper.warningMessage($('#name'),'LoginArea_LoginFailture'); </script>");
            
        }
    }
}